package models

import (
	"gitee.com/igolang/imoney/internal/core/client"
	"gitee.com/igolang/imoney/internal/models/dao"
)

type mdl struct{}

func Service() *mdl {
	return &mdl{}
}

func (m *mdl) Init() error {
	dao.SetDefault(client.DB())
	return nil
}

func (m *mdl) Shutdown() error {
	return nil
}

func (m *mdl) Name() string {
	return "models"
}
